package day_240418;

public class StudentTest {
    public static void main(String[] args) {
/*       Student student = new Student();
         student.age = 18;*/

/*        Student student1 = new Student();
        System.out.println(student1);

        Student student2 = new Student();
        System.out.println(student2);*/

/*        Student student1 = Student.student;
        System.out.println(student1);

        Student student2 = Student.student;
        System.out.println(student2);*/

/*
        Student stu0 = Student.instance;
        System.out.println(stu0);
*/

        Student stu1 = Student.getInstance();
        System.out.println(stu1);

        Student stu2 = Student.getInstance();
        System.out.println(stu2);
    }
}
